﻿

using GoodDotNet.Core.Entity;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace GoodDotNet.Core.Entity
{
	 [Table("admin_module")]
	public class AdminModule:IEntity{
		
		/// <summary>
		/// 
		/// </summary>
		
		[Key]
		
		[Column("id")]
		public int Id{ get; set; }
		
		/// <summary>
		/// 模块名称
		/// </summary>
		
		[Column("name")]
		public string? Name{ get; set; }
		
		/// <summary>
		/// 模块说明
		/// </summary>
		
		[Column("description")]
		public string? Description{ get; set; }
		
		/// <summary>
		/// 管理员id
		/// </summary>
		
		[Column("uid")]
		public long? Uid{ get; set; }
		
		/// <summary>
		/// 插入时间
		/// </summary>
		
		[Column("insert_time")]
		public DateTime? InsertTime{ get; set; }
		
		/// <summary>
		/// 更新时间
		/// </summary>
		
		[Column("update_time")]
		public DateTime? UpdateTime{ get; set; }
		
		/// <summary>
		/// 删除标志
		/// </summary>
		
		[Column("deleted")]
		public int Deleted{ get; set; }
		
		/// <summary>
		/// 模块路径
		/// </summary>
		
		[Column("path")]
		public string? Path{ get; set; }
		
		/// <summary>
		/// 排序
		/// </summary>
		
		[Column("sn")]
		public int Sn{ get; set; }
		
		/// <summary>
		/// 父id
		/// </summary>
		
		[Column("parent_id")]
		public int ParentId{ get; set; }
		
		/// <summary>
		/// 菜单图标
		/// </summary>
		
		[Column("icon")]
		public string? Icon{ get; set; }
		
		/// <summary>
		/// 是否显示
		/// </summary>
		
		[Column("hidden")]
		public Boolean? Hidden{ get; set; }
		
		/// <summary>
		/// 页面路径
		/// </summary>
		
		[Column("component")]
		public string? Component{ get; set; }
		
		/// <summary>
		/// 页面标题
		/// </summary>
		
		[Column("title")]
		public string? Title{ get; set; }
		
		/// <summary>
		/// 控制按钮
		/// </summary>
		
		[Column("btns")]
		public string? Btns{ get; set; }
		
		/// <summary>
		/// 重定向
		/// </summary>
		
		[Column("redirect")]
		public string? Redirect{ get; set; }
		
	}
}
